package fr.umlv.m2.jee.spij.web.file.upload;

/**
 * Define the MIME Type Constants use in the file upload
 *
 * @author Christophe Chillan
 */
public enum MimeType {
    /**
     * Define the PDF MIME type
     */
    PDF {
        @Override
        public String type() {
            return ("application/pdf");
        }
    },
    /**
     * Define the JPG MIME type
     */
    JPG {
        @Override
        public String type() {
            return ("image/jpeg");
        }
    },
    /**
     * Define the BMP MIME type
     */
    BMP {
        @Override
        public String type() {
            return ("image/bmp");
        }
    },

    /**
     * Define the JPEG MIME type
     */
    JPEG {
        @Override
        public String type() {
            return ("image/jpeg");
        }
    },

    /**
     * Define the GIF MIME type
     */
    GIF {
        @Override
        public String type() {
            return ("image/gif");
        }
    },

    /**
     * Define the PNG MIME type
     */
    PNG {
        @Override
        public String type() {
            return ("image/png");
        }
    };

    /**
     * @return the wording of the MIME type
     */
    public abstract String type();
}
